package com.hotelManagerSystem.service;

import com.hotelManagerSystem.model.Permission;
import com.hotelManagerSystem.model.RolePermission;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  角色--权限服务类
 * </p>
 *
 * @author longyajr
 * @since 2021-12-22
 */
public interface IRolePermissionService extends IService<RolePermission> {

    boolean deleteRolePermissionByRoleId(int roleId);

    /**
     * @author treasy
     * @param staffId
     * @return
     */
    List<Permission> queryAllPermissionByStaffId(int staffId);

    boolean deleteByPermissionId(int permissionId);
}
